package com.glink.manage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glink.common.exception.GeneralSimpleException;
import com.glink.manage.domain.PersonTrainingRecordBean;
import com.glink.manage.dto.person.PersonTrainingRecordIdDTO;
import com.glink.manage.dto.person.PersonTrainingRecordPageDTO;
import com.glink.manage.dto.person.PersonTrainingRecordSaveDTO;
import com.glink.manage.vo.person.PersonTrainingRecordVO;

/**
 * @author  qiushaoshan
 * @since  2025-01-13
 */
public interface PersonTrainingRecordService extends IService<PersonTrainingRecordBean> {

    /**
     * 分页查询用户的培训记录
     * @param dto 用户信息
     * @return 培训记录
     */
    IPage<PersonTrainingRecordVO> pageByTrainingRecord(PersonTrainingRecordPageDTO dto);

    /**
     * 保存培训记录
     * @param dto 培训记录
     * @return 保存状态
     */
    boolean saveTrainingRecord(PersonTrainingRecordSaveDTO dto) throws GeneralSimpleException;

    /**
     * 删除培训记录
     * @param dto 培训记录ID
     * @return 删除状态
     */
    boolean delTrainingRecord(PersonTrainingRecordIdDTO dto) throws GeneralSimpleException;
}
